package zelix.hack.hacks;

import zelix.hack.Hack;
import zelix.hack.HackCategory;
import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent;
import zelix.utils.Utils;
import zelix.utils.Wrapper;

public class Parkour extends Hack {
	
	public Parkour() {
		super("Parkour", HackCategory.PLAYER);
	}
	
	@Override
	public String getDescription() {
		return "Jump when reaching a block's edge.";
	}
	
	@Override
	public void onClientTick(ClientTickEvent event) {
		if(Utils.isBlockEdge(Wrapper.INSTANCE.player())
				&& !Wrapper.INSTANCE.player().isSneaking()) 
			Wrapper.INSTANCE.player().jump();
		super.onClientTick(event);
	}
	
}
